package com.fanrenqiji.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;

/**
 * Created by yanwt on 2017/4/5.
 */
@Getter
@Setter
@Entity
@Table(name="sys_area")
@org.hibernate.annotations.Table(appliesTo = "sys_area",comment = "地区")
@org.hibernate.annotations.DynamicInsert
@org.hibernate.annotations.DynamicUpdate
@org.hibernate.annotations.Cache(region="area", usage = CacheConcurrencyStrategy.READ_WRITE)
public class AreaEntity {
    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private Long id;
    @Column(columnDefinition=("varchar(255) default null comment '区域名称'"))
    private String name;
}
